package cn.edu.xmist.state;

public class ConcreteState2Impl extends State {
    @Override
    public void handle1() {
        /**
         * 从状态2切换到状态1 --- 》 handle1
         */
        super.context.setCurrentState(Context.STATE1);

        super.context.handle1();
    }

    @Override
    public void handle2() {
        System.out.println("这个是执行状态2的逻辑");
    }
}
